﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NoCompleteCustomLableHander.aspx.cs" Inherits="UI_Orders_NoCompleteCustomLableHander" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>不完全代码处理</title>
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <style type="text/css"> 
        body { 
        font: normal 12px auto "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
        } 
        .c
        {
        padding-bottom:5px;    
        border:1px solid #C1DAD7;
        }
        .c th {
        font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
        color: #4f6b72; 
        border-right: 1px solid #C1DAD7; 
        border-bottom: 1px solid #C1DAD7; 
        border-top: 1px solid #C1DAD7; 
        letter-spacing: 2px; 
        text-transform: uppercase; 
        text-align: left; 
        padding: 6px 6px 6px 12px; 
        background: #CAE8EA  no-repeat; 
        } 
        .c td { 
        border-right: 1px solid #C1DAD7; 
        border-bottom: 1px solid #C1DAD7; 
        background: #fff; 
        font-size:12px; 
        padding: 6px 6px 6px 12px; 
        color: #4f6b72; 
        } 
        .p
        {
           background-color:#6293BB;
           color:#fff;
           font-weight:bold;
        }
        .p td
        {
        font-size:12px; 
        padding: 6px 0px 6px 0px; 
        }
    </style> 
    <script type = "text/javascript">
        window.name = "win";        
        function check() {
            var text = $("#divMain").text();
            if (text == "没有需要处理的订单") {
                window.close();
                return false;
            }
            return confirm('确认当前选择?');
        }
        function txtchange(e) {
            if (e.value == "") {
                e.value = "1";
            }
        }
    </script>
    
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <form id="form1" runat="server" target="win">
        <input type="hidden" id = "txtEbayUserId" runat = "server"/>
        <input type="hidden" id = "txtOrderId" runat = "server" />
        <div id="divMain" runat = "server" style = "height:340px; width:765px; overflow-X:auto;overflow:scroll;">
            <asp:Repeater runat="server" ID="repParent" OnItemDataBound="rptypelist_ItemDataBound">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" width="740px">
                </HeaderTemplate>
                <ItemTemplate>     
                    <tr class="p">                 
                        <td>Rec_Num:</td><td runat="server" id="SalesRecordNumber"><%#Eval("SalesRecordNumber")%></td>  
                        <td>SKU 代码:</td><td runat="server" id="ProductId"><%#Eval("ProductId")%></td>
                        <td>发货数量:</td><td align="left" id="sQty" runat="server"><%#Eval("sQty")%></td>
                        <td id="CustomLable" runat="server" visible="false"><%#Eval("CustomLable")%></td>
                        <td id="OrderLineitemId" runat="server" visible="false"><%#Eval("OrderLineitemId")%></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <div>
                                <asp:Repeater runat="server" ID="repChild">
                                    <HeaderTemplate>
                                        <table class="c" cellpadding="0" cellspacing="0" style="border:#B3CCF2 1px solid;background:#DAE9FB;">
                                            <tr>
                                                <th style="width:1%"></th>
                                                <th style="width:10%">请选择</th>
                                                <th style="width:12%">输入数量</th>
                                                <th style="width:19%">SKU</th>
                                                <th style="width:42%">产品名称</th>
                                                <th style="width:8%">数量</th>
                                                <th style="width:8%">库存</th>
                                            </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>    
                                            <td align="center"><%# Container.ItemIndex+1 %></td>
                                            <td align="center">
                                                <asp:CheckBox ID="chkitem" runat="server" Checked = '<%# Convert.ToBoolean(Eval("chk")) %>'/>
                                            </td>
                                            <td align="center"><input runat="server" id="cQty" value='<%#Eval("cQty")%>' onchange="txtchange(this);" style="border:0px;background-color:#F0F0E8;width:30px; text-align:center" class="easyui-numberbox" maxlength="3" /></td>
                                            <td runat="server" id="UserCode"><%#Eval("UserCode")%></td>
                                            <td><%#Eval("ProductName")%></td>
                                            <td runat="server" id="Qty" align="right"><%#Eval("Qty")%></td>
                                            <td runat="server" id="FQty" align="right"><%#Eval("FQty")%></td>
                                            <td runat="server" id="FOrderPrice" align="right" visible = "false"><%#Eval("FOrderPrice")%></td>
                                            <td runat="server" id="ProductId2" visible = "false"><%#Eval("ProductId2")%></td>
                                            <td runat="server" id="FStockId" visible = "false"><%#Eval("FStockId")%></td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div style="text-align:right;height:30px;line-height:30px; padding:10px; width:730px;">
        <asp:LinkButton runat="server" ID = "btnSend" CssClass = "easyui-linkbutton" 
                iconCls="icon-ok" Text = "OK" onclick="btnSend_Click" OnClientClick = "return check();"></asp:LinkButton>
			<a id="btnkhtkClose" class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick = "javascript:window.close();void(0);">Close</a>
		</div>
    </form>
</body>
</html>
